package com.homework.ch02.ch021;

public class OuterClass {
    public int data1;
    public int data2;
    public static int data3=1;
    public int c=10;
    public void test(){
        System.out.println("out::test方法");

    }
    class InnerClass{
        public int c=20;
        public int a;
        public int b=2;

        public void test(){
            System.out.println("inner::test方法");
            System.out.println(c);
            System.out.println(OuterClass.this.c);
            System.out.println(data3);
        }

    }
}
